package com.iqiyi.pps.epg.core.service.log;

import com.iqiyi.pps.epg.core.dao.base.Page;
import com.iqiyi.pps.epg.core.dao.base.PropertyFilter;
import com.iqiyi.pps.epg.core.dao.log.InterfaceLogDao;
import com.iqiyi.pps.epg.core.model.log.InterfaceLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class InterfaceLogServiceImpl implements InterfaceLogService {
    @Autowired
    private InterfaceLogDao interfaceLogDao;

    @Override
    public void save(InterfaceLog entity) {
        interfaceLogDao.save(entity);
    }

    @Override
    public Page<InterfaceLog> getPageList(Page<InterfaceLog> page, List<PropertyFilter> filters) {
        return interfaceLogDao.findPage(page, filters);
    }
}
